package com.ipet.app.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by jindongping on 16/3/11.
 */
@DatabaseTable(tableName = "userInfo")
public class UserInfo {
    @DatabaseField(id = true)
    private String user_id;
    @DatabaseField
    private String reg_time;
    private String password;
    @DatabaseField
    private String session;
    @DatabaseField
    private String nickname;
    @DatabaseField
    private String gender;
    @DatabaseField
    private String email;
    @DatabaseField
    private String phone_num;
    @DatabaseField
    private String head_picurl;
    @DatabaseField
    private String info;
    @DatabaseField
    private String interest_animal;
    @DatabaseField
    private String location;
    @DatabaseField
    private String agree_num;
    @DatabaseField
    private String defriend_num;

    //orm数据库必须包含默认构造函数
    public UserInfo() {
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getReg_time() {
        return reg_time;
    }

    public void setReg_time(String reg_time) {
        this.reg_time = reg_time;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSession() {
        return session;
    }

    public void setSession(String session) {
        this.session = session;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone_num() {
        return phone_num;
    }

    public void setPhone_num(String phone_num) {
        this.phone_num = phone_num;
    }

    public String getHead_picurl() {
        return head_picurl;
    }

    public void setHead_picurl(String head_picurl) {
        this.head_picurl = head_picurl;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getInterest_animal() {
        return interest_animal;
    }

    public void setInterest_animal(String interest_animal) {
        this.interest_animal = interest_animal;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getAgree_num() {
        return agree_num;
    }

    public void setAgree_num(String agree_num) {
        this.agree_num = agree_num;
    }

    public String getDefriend_num() {
        return defriend_num;
    }

    public void setDefriend_num(String defriend_num) {
        this.defriend_num = defriend_num;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "user_id='" + user_id + '\'' +
                ", reg_time='" + reg_time + '\'' +
                ", password='" + password + '\'' +
                ", session='" + session + '\'' +
                ", nickname='" + nickname + '\'' +
                ", gender='" + gender + '\'' +
                ", email='" + email + '\'' +
                ", phone_num='" + phone_num + '\'' +
                ", head_picurl='" + head_picurl + '\'' +
                ", info='" + info + '\'' +
                ", interest_animal='" + interest_animal + '\'' +
                ", location='" + location + '\'' +
                ", agree_num='" + agree_num + '\'' +
                ", defriend_num='" + defriend_num + '\'' +
                '}';
    }
}
